package org.benjamin.wechat.service.impl;

import java.util.List;

import org.benjamin.wechat.domain.entity.Account;
import org.benjamin.wechat.repository.AccountRepository;
import org.benjamin.wechat.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AccountServiceImpl implements AccountService {
	
	@Autowired
	private AccountRepository accountRepository;

	@Override
	public void submitInfo(Account account) {
		this.accountRepository.save(account);

	}

	@Override
	public List<Account> findAll() {
		return this.accountRepository.findAll();
	}

}
